package milktea.dao;

import milktea.basedao.Basedao;
import milktea.entity.CART;
import milktea.entity.MESSAGE;

public class MESSAGEDao {
    public static int insert(MESSAGE message) {
        String sql = "insert into contactwe values(?,?,?)";
        Object[] params = {
                message.getName(),
                message.getEmail(),
                message.getMessage()
        };

        return Basedao.exectuIUD(sql, params);
    }
}
